{include file="../Common/header.html"}
	<link rel="stylesheet" href="./Public/Home/Css/member.css" />
	<script type="text/javascript" src='./Public/Home/Js/member.js'></script>

{include file="../Common/nav.html"}

<!--------------------中部-------------------->
	<div id='center'>
{include file="../Common/memberLeft.html"}
		<div id='right'>
			<p class='title'>我的回答</p>
			<ul class='ask-filter'>
				<li {if !$smarty.get.w}class='cur'{/if}><a href="./index.php?c=member&a=my_answer&uid={$smarty.get.uid}">全部回答</a></li>
				<li {if $smarty.get.w ==1}class='cur'{/if}><a href="./index.php?c=member&a=my_answer&uid={$smarty.get.uid}&w=1">被采纳的回答</a></li>
			</ul>
			<div class='list list-filter'>
				<table>
				{if !$myAnswer }	
						<tr height='140'>
							<td>{if !$smarty.get.w}你还没有回答过问题{else}我还没有被采纳的回答{/if}</td>
						</tr>
				{else}
						<tr>
							<th class='t1'>标题</th>
							<th>回答</th>
							<th class='t3'>更新时间</th>
						</tr>
						{foreach from=$myAnswer item=v}
						<tr>
							<td class='t1'>
								<a href="./index.php?c=show&asid={$v.asid}">{$v.acontent}</a><span>[{$v.title}]</span>
							</td>
							<td>{$v.answer}</td>
							<td class='t3'>{$v.antime|date_format:"%Y-%m-%d %H:%M"}</td>
						</tr>
						{/foreach}
				{/if}		
				</table>
			</div>
			<div class='list list-filter hidden'>
				<table>
						<tr height='140'>
							<td>我还没有被采纳的回答</td>
						</tr>
					<tr>
						<th class='t1'>标题</th>
						<th>回答</th>
						<th class='t3'>更新时间</th>
					</tr>
					<tr>
						<td class='t1'>
							<a href="">什么牌子的电脑好？</a><span>[电脑/硬件]</span>
						</td>
						<td>20</td>
						<td class='t3'>2014-9-14</td>
					</tr>
				</table>
			</div>
		</div>
	</div>
<!--------------------中部结束-------------------->
{include file="../Common/footer.html"}